<?xml version="1.0" encoding="utf-8"?>
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <ConstraintSet android:id="@+id/start">
        <Constraint
            android:id = "@+id/image_system"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:srcCompat="@drawable/bg_system"
            android:rotation="0"
            />
        <Constraint
            android:id="@+id/rotate"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/ic_baseline_rotate_left_24"
            android:rotation="0"
            app:layout_constraintBaseline_toTopOf="@+id/guideline_horizontal_two_motion"
            app:layout_constraintStart_toStartOf="@+id/guideline_vertical_motion"
            />
    </ConstraintSet>

    <ConstraintSet android:id="@+id/end">
        <Constraint
            android:id = "@+id/image_system"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:srcCompat="@drawable/bg_system"
            android:rotation="360"
            />
        <Constraint
            android:id="@+id/rotate"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/ic_baseline_rotate_left_24"
            android:rotation="360"
            android:scaleY="-1"
            app:layout_constraintStart_toStartOf="@+id/guideline_vertical_motion"
            app:layout_constraintBaseline_toTopOf="@+id/guideline_horizontal_one_motion"
            />
    </ConstraintSet>

    <Transition
        app:constraintSetEnd="@+id/end"
        app:constraintSetStart="@+id/start"
        app:duration="4000" />
    <OnClick app:targetId="@+id/rotate" />
</MotionScene>
